package com.ly.cloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.baomidou.mybatisplus.incrementer.OracleKeyGenerator;

@SpringBootApplication(scanBasePackages = {"com.ly.cloud" })
@EnableTransactionManagement
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker
public class XjglServiceApplication {

	private final static Logger logger = LoggerFactory.getLogger(XjglServiceApplication.class);

    public static void main(String[] args) {
        if (logger.isDebugEnabled()) {
            logger.debug("正在启动一个示例程序......");
        }
        SpringApplication.run(XjglServiceApplication.class, args);
    }
    
    @Bean
    public OracleKeyGenerator oracleKeyGenerator(){
      return new OracleKeyGenerator();
    }
    
}
  